<?php

namespace IYUU\sdk\CoolQ\MiddleWare;

use IYUU\sdk\CoolQ\Context;
use IYUU\sdk\CoolQ\MiddlewareInterface;

/**
 * 事件监听
 * Class EventListen
 * @package IYUU\sdk\CoolQ\MiddleWare
 */
class EventListen implements MiddlewareInterface
{
    public function process(Context $context, callable $next): array
    {
        //file_put_contents(runtime_path() . '/EventListen.log', __METHOD__ . PP($context->get('post_type'), false), FILE_APPEND);
        return $next($context);
    }
}
